﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Master/Admin.Master" AutoEventWireup="true"
    CodeBehind="SeoList.aspx.cs" Inherits="Besture.UI.SeoList" %>

<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.2" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v11.2" namespace="DevExpress.Web.ASPxGridView" tagprefix="dx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="listPage">
        <!--顶部操作按钮开始-->
        <div class="operateBar">
            <ul>
                <li><a href="javascript:grid.SelectRows();" class="operate-all"><s class="icon-gou-red">
                </s>全选</a></li>
                <li><a href="javascript:grid.UnselectRows();" class="operate-cancel"><s class="icon-cancel-yellow">
                </s>取消</a></li>
                <li>
                    <asp:LinkButton ID="lbAllDelete" runat="server" OnClientClick="return confirm('删除后无法恢复，确定删除选中项吗?');"
                        class="operate-delete" OnClick="BtnDelClick" ><s class="icon-delete"></s>删除</asp:LinkButton>
                </li>
                <%--<li><a href="javascript:void(0);" onclick="Grid2DeleteData('grid');" class="operate-delete">
                    <s class="icon-delete"></s>删除</a></li>--%>
                <li>
                    <asp:LinkButton ID="lbAdd" runat="server" class="operate-add" OnClick="BtnAddClick" ><s class="icon-add-green"></s>添加</asp:LinkButton>
                </li>
            </ul>
        </div>
        <!--顶部操作按钮结束-->
        <cms:ASPxGridView ID="grid" ClientInstanceName="grid" runat="server" Width="99%"
            AutoGenerateColumns="False" KeyFieldName="ID" OnCustomCallback="GridCustomCallback"
            OnRowDeleting="GridRowDeleting">
            <Columns>
                <cms:GridViewCommandColumn ShowSelectCheckbox="true" VisibleIndex="0" Width="50px"
                    FixedStyle="Left">
                    <HeaderTemplate>
                        <input type="checkbox" onclick="grid.SelectAllRowsOnPage(this.checked);" title="全选/全不选"
                            id="chkAll" runat="server" />
                    </HeaderTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                </cms:GridViewCommandColumn>
                <cms:GridViewDataTextColumn Caption="操作" VisibleIndex="2" Width="120px" HeaderStyle-HorizontalAlign="Center"
                    CellStyle-HorizontalAlign="Center" FixedStyle="Left">
                    <DataItemTemplate>
                        <div class="operateBox">
                            <a class="btn-text-edit" href="SeoSet.aspx?id=<%# Eval("ID") %>" title="编辑">
                            </a>&nbsp;&nbsp;<a class="btn-text-del" onclick="window.setTimeout(function(){aspxGVDeleteRow('ctl00_Content_grid',<%# Container.ItemIndex %>);},0)"
                                title="删除"></a>
                        </div>
                    </DataItemTemplate>
                </cms:GridViewDataTextColumn>
                <cms:GridViewDataTextColumn Caption="SeoKey" VisibleIndex="3" Width="" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center" FieldName="SeoKey">
					<Settings AutoFilterCondition="Contains"></Settings>
				</cms:GridViewDataTextColumn>
				<cms:GridViewDataTextColumn Caption="页面名称" VisibleIndex="4" Width="" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center" FieldName="SeoValue">
					<Settings AutoFilterCondition="Contains"></Settings>
				</cms:GridViewDataTextColumn>
				<cms:GridViewDataTextColumn Caption="Seo标题" VisibleIndex="5" Width="" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center" FieldName="SeoTitle">
					<Settings AutoFilterCondition="Contains"></Settings>
				</cms:GridViewDataTextColumn>
                <cms:GridViewDataTextColumn Caption="Seo关键字" VisibleIndex="6" Width="" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center" FieldName="SeoKeywords">
					<Settings AutoFilterCondition="Contains"></Settings>
				</cms:GridViewDataTextColumn>
                <cms:GridViewDataTextColumn Caption="Seo描述" VisibleIndex="7" Width="" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center" FieldName="SeoDescription">
					<Settings AutoFilterCondition="Contains"></Settings>
				</cms:GridViewDataTextColumn>
				<%--<cms:GridViewDataDateColumn Caption="创建时间" VisibleIndex="9" Width="" HeaderStyle-HorizontalAlign="Center" 
					CellStyle-HorizontalAlign="Center"  FieldName="CreateTime">
					<PropertiesDateEdit DisplayFormatString="{0:yyyy-MM-dd HH:mm:ss}">
					</PropertiesDateEdit>
				</cms:GridViewDataDateColumn>--%>
				
            </Columns>
        </cms:ASPxGridView>
    </div>
</asp:Content>
